﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserCenterMaster.master"
    AutoEventWireup="true" CodeFile="PostProduct.aspx.cs" Inherits="usercenter_PostProduct" %>

<%@ Register Src="../UserControl/UserCenter/Seller/UC_PostProduct.ascx" TagName="UC_PostProduct"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CssLinkHolder" runat="Server">
    <link href="../Themes/css/jquery.selecter.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/formValidator.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="Server">
    <uc1:UC_PostProduct ID="UC_PostProduct1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JsHolder" runat="Server">
    <script type="text/javascript" src="../themes/scripts/formValidator-4.0.1.min.js"></script>
    <script type="text/javascript" src="../Themes/scripts/jquery.selecter.js"></script>
    <script type="text/javascript">
        jQuery(function () {

            jQuery("#selecter").selecter({
                handler: '/AjaxGet.ashx',
                data: 'cmd=2030&parentid=',
                isSingle: true
            });


            jQuery.formValidator.initConfig({ submitButtonID: "btnSubmit", autoTip: false, debug: false, onSuccess: function () { return true; }, onError: function () { } });
            jQuery("#txtProductName").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).inputValidator({ min: 2, onError: "ProductName is required" });
            jQuery("#txtKeywords").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).inputValidator({ min: 2, onError: "Keywords is required" });
            jQuery("#txtApplication").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).inputValidator({ min: 2, onError: "Application is required" });
            jQuery("#txtOEMNo").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).inputValidator({ min: 2, onError: "OEMNO is required" });
            jQuery("#hidcategory").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).functionValidator({ fun: function () {
                var vals = [];
                jQuery("#selected li").each(function (i, o) {
                    if (jQuery(o).attr("rel") != undefined) { vals.push(jQuery(o).attr("rel")); }
                })
                jQuery("#hidcategory").val(vals.join(","));


                return vals.length > 0;
            }, onError: "Category is required"
            });
            jQuery("#txtDescription").formValidator({ onShow: " ", onFocus: " ", onCorrect: " " }).inputValidator({ min: 4, onError: "Description is required" });
        })
    </script>
</asp:Content>
